package com.auto.api.core.entity;

import lombok.Data;

/**
 * @program:
 * @description:
 * @author: liangshf
 * @create: 2020-10-30
 */
@Data
public class BeanMargeContext extends ParseTypeContext<Object>{

    /**
     * 合并结果集
     */
    private Object margeObj;

    /**
     * 合并结果集key
     */
    private String margeKey;

    /**
     * 是否设置BeanMargeKey
     */
    private boolean hasBeanMarge;

    /**
     * 合并Bean key对应数据是否能关联上
     */
    private boolean dataMarge;

    public BeanMargeContext() {

    }

    public BeanMargeContext(final Object target, final Object margeObj) {
        super(margeObj.getClass());
        this.setResult(target);
        this.margeObj = margeObj;
    }

}